home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 November
/
Macworld (1999-11).dmg
/
Shareware World
/
Comms & Internet
/
DXF to VRML97 1.0.1
/
src
/
DropUNIX Lib
/
Lib Headers
/
DSUtils.h
< prev
Wrap
Text File
|
1998-08-31
|
3KB
|
86 lines
/******************************************************************************
**
** Project Name: DropShell
** File Name: DSUtils.h
**
** Description: header w/protos for DSUtils
**
*******************************************************************************
** A U T H O R I D E N T I T Y
*******************************************************************************
**
** Initials Name
** -------- -----------------------------------------------
** SCS Stephan Somogyi
** LDR Leonard Rosenthol
**
*******************************************************************************
** R E V I S I O N H I S T O R Y
*******************************************************************************
**
** Date Author Description
** --------- ------ ---------------------------------------------
** 20 Feb 94 LDR Exported new file system routines
** 11 Dec 93 SCS Universal Headers/UPPs (Phoenix 68k/PPC & PPCC)
** Skipped System 6 compatible rev of DropShell source
** 12/09/91 LDR Added protos for new routines
** 11/24/91 LDR original version
**
******************************************************************************/
#ifndef __DSUTILS_H__
#define __DSUTILS_H__
#include <Types.h>
#include <Memory.h>
#include <QuickDraw.h>
#include <OSUtils.h>
#include <ToolUtils.h>
#include <Menus.h>
#include <Packages.h>
#include <Traps.h>
#include <Files.h>
#include <Resources.h>
#include <Errors.h>
#include <TextUtils.h>
#include <Aliases.h>
#include <Processes.h>
#include <PPCToolbox.h>
#include "DSGlobals.h"
#ifndef _FSAH_
#define _FSAH_
typedef FSSpecArrayPtr *FSSpecArrayHandle; /* handle to array of FSSpecs */
#endif
void CenterAlert ( short theID );
#define ErrorAlert(stringListID, errorNumber) \
_ErrorAlert(stringListID, errorNumber, 0, c2pstr(__FILE__), __LINE__)
#define Panic(id) \
_Panic(id, c2pstr(__FILE__), __LINE__)
#define FailOnError(err, errornumber) \
_FailOnError(err, errornumber, c2pstr(__FILE__), __LINE__)
void _ErrorAlert ( short stringListID, short errorNumber, short osError, Str255 fileName, short lineNumber );
void _Panic(short errorNumber, Str255 filename, short lineNumber);
void _FailOnError(OSErr err, short errorNumber, Str255 filename, short linenumber);
void GetMyAppName(Str255 appName);
void GetAppFSSpec(FSSpec *appSpec);
OSErr ForceFinderUpdate(FSSpec *pFSS, Boolean flush);
Boolean FSpIsBusy(FSSpecPtr theFile);
Boolean FSpIsFolder(FSSpecPtr theFSSpec);
OSErr GetTargetFromSelf (AEAddressDesc *targetDesc);
void _SendDocsToSelf (AEDescList *aliasList);
void SendODOCToSelf (FSSpec *theFileSpec);
void SendQuitToSelf (void);
#endif